﻿<cfsilent>
	<cfscript>
		
		jsonAdvice = getProperty("serviceFactory").getBean("jsonAdvice");
		
		/* 回执信息 */
		response = structNew();
		structInsert(response, "success", false, true);
		
		/* 班级代码 */
		classId = event.getArg("CID");
		
		transaction {
			
			sql = "DELETE FROM t_class WHERE cls_id = :classId ";
			
			queryObj = new query( datasource=application.dnsMaster );
			queryObj.addParam( name="classId", value=classId, cfsqltype="cf_sql_char" );
			queryObj.execute( sql=sql );

			structInsert(response, "success", true, true);
			structInsert( response, "ClassID", classId );

		}

	</cfscript>
</cfsilent><cfoutput>#jsonAdvice.encode(data:response, stringNumbers:true)#</cfoutput>